package com.xframe.domain.e3sp.basedata;

import com.xframe.domain.BaseModel;
import com.xframe.xdal.core.annotation.*;
import com.xframe.xdal.core.constant.AutoFillType;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Description: CLASS基础表
 * @ClassName: com.xframe.domain.e3sp.basedata.PartClass
 * @Author: xufeng
 * @CreateTime: 2023/12/19
 **/
@Data
@Accessors(chain=true)
@XTable(value = "p_t01_class", label = "CLASS")
@XSelectItem(keyName = "classId",codeName = "classCode",textName = "nameCn")
@XSelectItem(keyName = "classId",codeName = "classCode",textName = "nameEn",language = "en")
public class PartClass extends BaseModel {
    /**
     * CLASSID
     */
    @AutoFill(AutoFillType.Snowflake)
    @XColumn(name = "class_id", primaryKeyFlag = true,desc = "CLASSID")
    private Long classId;

    /**
     * CLASS编码
     */
    @XQueryCondition
    @XGridTableRef
    @XColumn(name = "class_code", uniqueFlag = true,desc = "CLASS编码",length = 200)
    private String classCode;


    /**
     * CLASS中文名称
     */
    @XQueryCondition
    @XGridTableRef
    @XColumn(name = "name_cn",desc = "CLASS中文名称",length = 200)
    private String nameCn;

    /**
     * CLASS英文名称
     */
    @XColumn(name = "name_en",desc = "CLASS英文名称",length = 200)
    private String nameEn;

    /**
     * 备注
     */
    @XColumn(name = "remark",desc = "备注",length = 500,nullFlag = true)
    private String remark;
}
